package com.woniu.car.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


@Data
public class AddGoodsCategoryParam {
    /**
     * 分类名
     */
    @ApiModelProperty(value = "分类名",required = true)
    @NotEmpty(message="分类名不能为空")
    private String categoryName;

    /**
     * 分类父级编号
     */
    @ApiModelProperty(value = "该分类的父级id",example = "0")
    @NotNull(message="分类父级id不能为空")
    private Integer parentId;

    /**
     * 分类等级
     */
    @ApiModelProperty(value = "分类等级",example = "2")
    @NotNull(message="分类等级不能为空")
    @Min(0)
    private Integer categoryLevel;



}
